//
//  sendGiftInfo.m
//  tcpoctest
//
//  Created by gump on 5/21/13.
//  Copyright (c) 2013 gump. All rights reserved.
//

#import "sendGiftInfo.h"

@implementation sendGiftInfo

-(void)sendGiftGetInfo:(NSString *)strgiftid
{
    //发送 26char(1),8char(1),礼物ID长度char(1),礼物idchar(x)
    
    if (![self CheckLogin]) {
        return;
    }
    
    int l = CHAR_PL * 3 + INT_PL + [strgiftid length];
    
    [self initDataByLength:l];
    
    [sb WriteChar:[strgiftid length]];
    [sb WriteString:strgiftid withLength:[strgiftid length]];
    
    [self Package];
    
}

@end
